package com.mt.channel.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mt.channel.entity.ChannelAdminEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;

@FeignClient(name = "channelService")
public interface ChannelAdminFeign {

    @GetMapping("/channelAdmin/findInfo")
    public ServiceResult<ChannelAdminEntity> findInfo(@RequestParam("params") Map<String, Object> params);

    @GetMapping("/channelAdmin/findList")
    ServiceResult<List<ChannelAdminEntity>> findList(@RequestParam("params") Map<String, Object> params,
            @RequestParam("pagerInfo") PagerInfo<?> pagerInfo);

    @PostMapping("/channelAdmin/doUpdate")
    ServiceResult<Integer> doUpdate(@RequestParam("channelAdminEntity") ChannelAdminEntity channelAdminEntity);

    @PostMapping("/channelAdmin/doInsert")
    ServiceResult<Integer> doInsert(@RequestParam("channelAdminEntity") ChannelAdminEntity channelAdminEntity);

    @PostMapping("/channelAdmin/doDeleteById")
    void doDeleteById(@RequestParam("channelAdminId") Integer channelAdminId);
}
